<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex CancelAccount_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between CancelAccount_fd0_0'>
					<view class='flex flex-wrap align-center CancelAccount_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  CancelAccount_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='CancelAccount_fd0_0_c1_c0'>{{$t('注销账号')}}</text>
					</view>
					<view class='flex align-center justify-end CancelAccount_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			
			<view class="loading_css" v-if="isShow">
				<u-loading size="36" color="#3090FF"></u-loading>
				<view>加载中</view>
			</view>
			<block v-else>
				<view class="flex flex-direction flex-wrap align-stretch CancelAccount_flex_1">
					<jyf-parser class='CancelAccount_fd1_0' :html="dataMessage.rule | richTextFormat">
					</jyf-parser>
				</view>
				
				<!---注销账号协议flex布局结束-->
				<!---flex布局flex布局开始-->
				<view class="flex flex-wrap align-center justify-center benben-flex-layout CancelAccount_flex_2"
					@tap="applyBtn">
					<text class='CancelAccount_fd2_0'>填写注销申请</text>
				</view>
			</block>

		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"isShow": true,
				"dataMessage": {
					"status": -1,   //注销状态：-1.未申请；1.待审核；2.已同意；3.已拒绝
					"aid": "",
					"name": "",
					"thumb_img": "",
					"content": "",
					"introduce": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getMessageFunc();
		},
		onUnload() {
			
		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//系统文章--获取系统单页内容
			async getMessageFunc() {
				//请求方法
				//数据验证

				let datadataMessage = await this.$api.post(global.apiUrls.post656f152f10a6f, {
					
				});
				this.isShow = false;
				if (datadataMessage.data.code != 1) {
					this.$message.info(datadataMessage.data.msg);
					return
				}
				let infodataMessage = datadataMessage.data;
				this.dataMessage = infodataMessage.data
			},
			applyBtn() {
				if (this.dataMessage.status == -1) {
					uni.navigateTo({
						url: '/pages/xtsz/logOutReason/logOutReason'
					})
				} else {
					uni.navigateTo({
						url: '/pages/xtsz/logOutSubmit/logOutSubmit?type=2'
					})
				}
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #f8f8f8;
		background-size: 100% auto;
	}

	.CancelAccount_flex_0 {
		border-bottom: 1px solid #eee;
		background: #f8f8f8;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.CancelAccount_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.CancelAccount_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
		line-height: 50rpx;
	}

	.CancelAccount_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.CancelAccount_fd0_0_c0 {
		width: 100rpx;
	}

	.CancelAccount_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.CancelAccount_flex_1 {
		font-size: 32rpx;
		background-size: 100% auto !important;
		padding: 32rpx 32rpx 32rpx 32rpx;
		margin: 0rpx 0rpx 032rpx 0rpx;
	}

	::v-deep .CancelAccount_fd1_0 {
		width: 100%;
		margin: 0rpx 0rpx 150rpx 0rpx;
		font-size: 28rpx;
	}

	.CancelAccount_flex_2 {
		background: var(--benbenbgColor1);
		width: 100%;
		height: 110rpx;
		background-size: 100% auto;
		position: absolute;
		bottom: 0rpx;
	}

	.CancelAccount_fd2_0 {
		color: rgba(255, 69, 56, 1);
		font-size: 32rpx;
		font-weight: 500;
	}
</style>